package com.msb.service.impl;

import com.msb.mapper.BookMapper;
import com.msb.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
@Service
public class BookServiceimpl implements BookService {
    //创建数据库连接层层对象（供业务层调用）
    @Autowired//属性注入
    private BookMapper bookMapper;
    @Override
    public List findAllbooks() {
        return bookMapper.SelectAllbooks();
    }
}
